package com.wj.tool.common.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @description:
 * @author: wj
 * @create: 2021/12/16 16:46
 */
@Getter
@Setter
@ToString
public class WebResponse<T> {
    private int code;
    private int httpStatus;
    private String message;
    private ErrorNode[] errors;
    private T data;

    @Getter
    @Setter
    @ToString
    public static class ErrorNode {
        private String code;
        private String error;
        private String message;
        private String details;
    }

    public WebResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }
}


